<template>
  <div class="song-title">
    <p>
      <span class="logo"></span>
      <span class="title">{{song.name}}</span>
    </p>
    <p>
      歌手：
      <span>{{song.ar[0].name}}</span>
    </p>
    <p>
      专辑：
      <span>{{song.al.name}}</span>
    </p>
    <div class="button">
      <a href="javascript:;" title="播放">播放</a>
      <a href="javascript:;" title="添加到歌单">+</a>
      <a href="javascript:;" title="收藏">收藏</a>
      <a href="javascript:;">分享</a>
      <a href="javascript:;">下载</a>
      <a href="javascript:;">({{comment}})</a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    song: {
      type: Object,
      default() {
        return {}
      }
    },
    comment: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style scoped>
.song-title p {
  margin: 10px 0;
}

.song-title p:nth-child(1) {
  display: flex;
  font-size: 25px;
  margin-bottom: 20px;
}
.song-title .logo {
  display: inline-block;
  vertical-align: middle;
  width: 55px;
  height: 24px;
  background: url(~@/assets/img/icon.png) 0 -463px;
  margin-right: 10px;
}
.song-title .title {
  display: inline-block;
  line-height: 28px;
  width: 370px;
}
/* button */
.button {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.button a {
  padding: 0 8px 0 28px;
  color: #000;
  border-radius: 5px;
  box-shadow: 0 0 1px #000;
  height: 30px;
  line-height: 30px;
  cursor: pointer;
  margin-right: 8px;
  background: url(~@/assets/img/button.png) no-repeat -5px -805px;
}

.button a:nth-child(1) {
  color: #fff;
  margin-right: 0;
  border-radius: 5px 0 0 5px;
  border: 1px solid #1c6dbd;
}
.button a:nth-child(1):hover {
  background-position: -5px -633px;
}

.button a:nth-child(2) {
  color: #fff;
  font-size: 22px;
  padding: 0 8px;
  background-position: -5px -551px;
  border: 1px solid #1c6dbd;
  border-radius: 0 5px 5px 0;
}
.button a:nth-child(2):hover {
  background-position: -5px -387px;
}

.button a:nth-child(3) {
  background-position: 0 -1063px;
}
.button a:nth-child(4) {
  background-position: 0 -1268px;
}
.button a:nth-child(5) {
  background-position: 0 -2805px;
}
.button a:nth-child(6) {
  background-position: 0 -1508px;
}
</style>